package com.ylw.entity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * 游戏积分和排名
 * Created by yangliwei on 2017/7/12.
 */
@Entity
@Table(name=DXGameRank.table_name)
public class DXGameRank extends IdEntity{
    public static final String table_name = "dx_game_rank";
    private String userId;//用户Id
    private String userName;//用户名
    private String userHeader;//用户头像
    private Date obtainPointTime;//获取积分时间
    private Integer obtainPointScore=0;//获取积分时的游戏分数
    private Integer highestScore=0;//游戏最高分
    private Long gameId;//游戏id

    @Transient
    private Integer rank;//游戏排名

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserHeader() {
        return userHeader;
    }

    public void setUserHeader(String userHeader) {
        this.userHeader = userHeader;
    }

    public Date getObtainPointTime() {
        return obtainPointTime;
    }

    public void setObtainPointTime(Date obtainPointTime) {
        this.obtainPointTime = obtainPointTime;
    }

    public Integer getObtainPointScore() {
        return obtainPointScore;
    }

    public void setObtainPointScore(Integer obtainPointScore) {
        this.obtainPointScore = obtainPointScore;
    }

    public Integer getHighestScore() {
        return highestScore;
    }

    public void setHighestScore(Integer highestScore) {
        this.highestScore = highestScore;
    }

    public Long getGameId() {
        return gameId;
    }

    public void setGameId(Long gameId) {
        this.gameId = gameId;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }
}
